package com.eig.common.entity.course;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author ：StudentLsj（李世界）
 * @date ：Created in 2023/01/11 下午 08:06
 * @description：
 * @modified By：
 * @version:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "edu_chapter")
public class Chapter implements Serializable {

    private String id;
    @TableField(value = "course_id")
    private String courseId;
    private String title;
    private int sort;
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;
    @TableField(exist = false)
    private List<Video> video;
    @TableField(exist = false)
    private int periodNum;
}
